export default Object.freeze({
    options: {
        // height: 600,
        loading: true,
        useIndex: true,
        useMultiSelect: true,
    }, // table属性
    pageOptions: {
        background: true
    }, // 分页器属性
    columns: [{
            label: "姓名",
            prop: "name",
            // width:"20"
        },
        {
            label: "出生日期",
            prop: "birthday",
            slot:"birthday"
        },
        {
            label: "性别",
            prop: "sex",
            slot:"sex"
        },
        {
            label: "教育程度",
            prop: "education",
            slot:"education"
        },
        {
            label: "居住地址",
            prop: "address1"
        },
        {
            label: "手机号",
            prop: "mobile_phone",
            isHide: false,
        },
        {
            label: "申请状态",
            prop: "status",
            slot: "status"
        },
        {
            label: "操作",
            width: 1000,
            prop: "opts",
            slot: "opts"
        },
        {
            label: '配送信息',
            children: [{
                label: '地址',
                children: [{
                        label: '省份',
                        prop: 'address1'
                    },
                    {
                        label: '市区'
                    },
                    {
                        label: '地址'
                    },
                ]
            }]
        },
        {
            // html字符串formatter
            label: '自定义html',
            formatter:  (prop) =>{
                // prop内部.row是行的数据, el-table-column
                return `<div>
                            <h2>${prop.row.name}</h2>
                            <button>${prop.$index}</button>
                        </div>`
            }
        }
    ] // column的配置
})